package cn.wolfcode.luowowo.search.service.impl;

import cn.wolfcode.luowowo.search.repository.TravelTemplateRepository;
import cn.wolfcode.luowowo.search.service.ITravelSearchService;
import cn.wolfcode.luowowo.search.template.TravelTemplate;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service
public class TravelSearchServiceImpl implements ITravelSearchService {
    @Autowired
    private TravelTemplateRepository travelTemplateRepository;

    @Override
    public void save(TravelTemplate template) {
        travelTemplateRepository.save(template);
    }

    @Override
    public List<TravelTemplate> findByDestId(Long destId) {
        return travelTemplateRepository.findByDestId(destId);
    }
}
